import { post, get } from '../../../util/request.js'

export const loginApi = p => {
  return post('/api/sys/login', p)
}

export const registerApi = p => {
  return post('/api/sys/register', p)
}

export const getProfileConfig = p => {
  return post('/user/profile', p)
}

export const saveUserInfo = p => {
  return post('/user/saveUserInfo', p)
}

export const getVerifyCode = p => {
  return get('/api/sys/getCaptcha', p)
}
